<?php


namespace App\Admin\Extensions\Nav;

use App\Extensions\NavBar\AbstractNavBar;
use Encore\Admin\Facades\Admin;

class NavHeader extends AbstractNavBar
{
    function data()
    {
        $user = Admin::user();
        $data = [];
        if ($info = $this->navbarService()->todo($user, 1)) {
            $data[] = $this->groupData('我的待办', $info);
        }
        //$data[] = ['title' => '首页', 'href' => '/'];
        return $data;
    }

}
